#include "npc.h"
#include "map.h"
#include "graphics.h"

CGNpc::CGNpc():CGObject(GOT_NPC)
{
}

CGNpc::~CGNpc()
{
}

// Renders the NPC
void CGNpc::Render(const CGMap *TMap) 
{
	if(TMap) 
	{
		position2di ScreenPosition;
		bool OnScreen = TMap->GridToScreen(m_Position, ScreenPosition);

		if(OnScreen) 
		{
			GraphicsClass::Instance().DrawPlayer(ScreenPosition.X, ScreenPosition.Y, 15.0f, 15.0f, GetDir(), SColor(255, 0, 255, 0));
		}
	}
}